import Vuex from 'vuex'
import actions from './actions'
import mutations from './mutations'

const store = () => new Vuex.Store({
  state: {
    hasLogin: false,
    userInfo: {
      realName: ''
    },
    userInvest: {},
    syzquery: false,
    tbzquery: false,
    yjqquery: false,
    syzlist: [],
    tbzlist: [],
    yjqlist: []
  },

  actions,
  mutations
})

export default store
